// const mysql = require('mysql');
// const connection = mysql.createConnection({
//   host: '47.52.168.32',
//   user: 'wangli',
//   password: 'wy123456',
//   port: '3306',
//   database: 'wsql',
// });
// connection.connect();
const Sequelize = require('sequelize');
const sequelize = new Sequelize('hien', 'wangli', 'wy123456', {
  host: '47.52.168.32',
  dialect: 'mysql',
  pool: {
    max: 15,
    min: 0,
    acquire: 30000,
    idle: 10000
  },
});
module.exports = sequelize;
